home *** CD-ROM | disk | FTP | other *** search
/ Floppyshop 2 / Floppyshop - 2.zip / Floppyshop - 2.iso / diskmags / 5791-.end / dmg-6260 / articles / makedemo.doc < prev    next >
Text File  |  1993-06-24  |  4KB  |  81 lines

  1.                 HOW (NOT) TO GO ABOUT WRITING A DEMO
  2.                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3.  
  4. If you are in the  mood  for  making  a  demo, just follow these steps,
  5. and...you will probably fail badly. Nevertheless, here they are:
  6.  
  7.  
  8. Ask yourself,  "is  my  demo  going  to  be  centred  around  a certain
  9. subject?". In my 'law' there are these different types of demo:
  10.  
  11. i) One certain 'theme', eg. the  whole  demo  is based around the stone
  12. age. The scrolltext may  be  made  up  of  bones,  the doc-balls may be
  13. boulders or rocks, there may be a giant animated dinosaur, etc.
  14.  
  15. ii) The demo mostly contains one new  idea. For instance, if you had an
  16. original idea (not likely) such  as a three-dimensional sine distorter,
  17. which not only goes up and down, and  left and right, but in and out as
  18. well, you would centre the whole  demo  around this, and probably throw
  19. in a scroller and VU's as normal.
  20.  
  21. iii) The demo is  made  up  of  seperate  parts.  It  may  have a giant
  22. scroller screen, then an infinite  bobs  screen, then, erm, a hardware-
  23. scrolling screen, and so on.
  24.  
  25. iv) The demo is likely to consist of  any old stuff chucked in as usual
  26. by way of scrolltexts,  distorters,  VU's,  no-borders, rasters, and so
  27. forth.
  28.  
  29. Once you have decided what type of  demo  you want to do, you set about
  30. doing the basic graphics for it (or most likely, hacking them!). If you
  31. have come up with a new idea (such as the 3D-distorter) then do a brief
  32. program of this first to make sure you can get it to work (it's no good
  33. spending hours on a demo if the main part doesn't work!)
  34.  
  35. Next, create the 'shell' of the  demo.  When  I  mean shell, I mean the
  36. basic 'logic=back', 'if  hardkey=57  then  end',  'screenswap:wait vbl'
  37. type of things.  I  have  a  small  program  which  I  merge  in at the
  38. beginning of writing a demo,  which  has  a  part for initialisation, a
  39. part for the main loop, a  part  for  each  routine, and a part for the
  40. scrolltext messages or whatever. If  your  demos are logically set out,
  41. they are easier to code and debug.
  42.  
  43. Make sure that you have  a  "DOKE  $FF8240,$777  : DOKE $FF8240,0" just
  44. before the "WAIT VBL". Use this to ensure you stay at 50 Hz, and delete
  45. when you have finished.
  46.  
  47. Then, bit by bit, add each part  of  your screen into the main code. If
  48. you are basing your demo on one item (3D-distorter) then do this first,
  49. and see how much processor time you have left for the rest.
  50.  
  51. In any case, make sure you do your scroller (or message-displayer) near
  52. the beginning, because you want this to be as smooth as possible.
  53.  
  54. Make sure that you are using the most optimized method of code, ie. the
  55. FASTEST. Replace old or dodgy  bits  of  code  with newer ones. Replace
  56. SCREEN COPY with SKOPY 4, or BLIT (Missing-link!) or whatever.
  57.  
  58. Once your code is  finished,  draw,  or  hack,  the final graphics, and
  59. compress them with the PICTURE COMPACTER.
  60.  
  61. LEAVE YOUR MUSIC UNTIL  THE  VERY  END!  If  you  have  a section which
  62. refuses to work, you get so p*ssed off with hearing the same music over
  63. and over and over and over and over again, you lose the actual 'appeal'
  64. of the demo. (what?)
  65.  
  66. SAVE YOUR CODE BEFORE  YOU  USE  MACHINE-CODE  ROUTINES, OR BEFORE YOUR
  67. FIRST TRY. (There's not much worse  than  sitting waiting for a demo to
  68. work, and realising that CONTROL-C doesn't do anything!)
  69.  
  70. MENTION 'BLACK EAGLE' IN  THE  GREETINGS  LIST.  (NB:  NOT PUTTING IN A
  71. GREETINGS LIST AT ALL IS A BETTER IDEA!)
  72.  
  73.  
  74. There. If you have followed  these  steps  correctly, you will probably
  75. end up with something that looks like  a cross between a set of traffic
  76. lights, and a roll  of  green  kitchen  foil  (what?)  Still, I bet you
  77. enjoyed it (actually, I wouldn't bet too much on that, come to think of
  78. it...Then again, I will withdraw that bet forthwith.)
  79.  
  80. Article: BLACK EAGLE 24/6/93
  81.